echo "Preparing..."
rm -rf /tmp/mac-builds/nodejs
mkdir -p /tmp/mac-builds/nodejs
echo "Grabbing repo..."
cd /tmp/mac-builds/nodejs
git clone git://github.com/joyent/node.git
echo "Preparing build..."
cd node
./configure
echo "Building..."
make
echo "Installing"
sudo make install
echo "Cleaning..."
cd ~/
rm -rf /tmp/mac-builds/nodejs
